<?php

namespace App\Http\Resources\Mini\WechatFansResource;

use Illuminate\Http\Resources\Json\ResourceCollection;

class PlatformOwnerClass extends ResourceCollection
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'username' => $this->username,//用户名
            'mobile' => $this->mobile,//手机号
            'province' => $this->province,//省份
            'city' => $this->city,//市
            'area' => $this->area,//区域
            'detail' => $this->detail,//详细地址
            'community' => $this->community,//区域
            'tower_id' => $this->tower_id,//楼栋
            'element_id' => $this->element_id,//单元
            'floor_id' => $this->floor_id,//楼层
            'room_number' => $this->room_number,//房间号
            'electricity_bill_balance' => $this->electricity_bill_balance,//电费余额
            'water_bill_balance' => $this->water_bill_balance,//水费余额
            'property_bill_balance' => $this->property_bill_balance,//物业费余额
            'electric_id' => $this->electric_id,//电表id
            'elc_code' => $this->elc_code,//电表编号
            'water_id' => $this->water_id,//水表id
            'water_code' => $this->water_code,//水表编号
            'electric_plan_id' => $this->electric_plan_id,//电表缴费计划id
            'water_plan_id' => $this->water_plan_id,//水表缴费计划id
            'property_plan_id' => $this->property_plan_id,//物业费缴费id
            'electric_alarm_id' => $this->electric_alarm_id,//电费报警方案id
            'water_alarm_id' => $this->water_alarm_id,//水费报警方案
            'property_alarm_id' => $this->property_alarm_id,//物业费缴费方案
            'fatherId' => $this->fatherId,//代理商id
            'unionid' => $this->unionid,//开放平台unionid
            'user_img' => $this->user_img,//代付吗
            'last_payment_time' => $this->last_payment_time,//最后支付时间
            'electric_total' => $this->electric_total,//总电量
            'first_login_time' => $this->first_login_time,//首次登陆时间
            'create_time' => $this->create_time,
            'update_time' => $this->update_time,
        ];
    }
}
